package cn.kk.model.user.entity;

import cn.kk.base.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @Author: kk
 * @Date: 2023/2/7  20:56
 * @Version 1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("user_info")
public class UserInfoEntity extends BaseEntity implements Serializable {

    @Schema(defaultValue = "主键id")
    @TableId(value = "uid", type = IdType.ASSIGN_ID)
    private Long uid;
    @Schema(defaultValue = "用户名称")
    private String userName;
    @Schema(defaultValue = "手机号")
    private String phone;
    @Schema(defaultValue = "密码")
    private String password;
    @Schema(defaultValue = "密码盐")
    private String salt;
    @Schema(defaultValue = "邮箱")
    private String email;
    @Schema(defaultValue = "性别；0-男，1-女，2-未知")
    private Integer sex;
    @Schema(defaultValue = "状态； 0-生效，1-失效")
    private Integer state;

}
